#LOCAL_PATH := $(call my-dir)

#include $(CLEAR_VARS)

#LOCAL_MODULE    := tutorial01
#LOCAL_SRC_FILES := tutorial01.c
#LOCAL_LDLIBS := -llog -ljnigraphics -lz
#LOCAL_SHARED_LIBRARIES := libavformat libavcodec libswscale libavutil libswresample

#include $(BUILD_SHARED_LIBRARY)
#$(call import-module,ffmpeg4android/android/arm)


#way two

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE:= libffmpeg
LOCAL_SRC_FILES:= /Users/zhupei/GitHub/android-ffmpeg-tutorial01/app/libs/libffmpeg.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)


include $(CLEAR_VARS)
LOCAL_WHOLE_STATIC_LIBRARIES := libffmpeg
LOCAL_MODULE    := tutorial01
LOCAL_SRC_FILES := tutorial01.c
LOCAL_LDLIBS := -llog -ljnigraphics -lz #-lffmpeg
include $(BUILD_SHARED_LIBRARY)
include $(call all-makefiles-under,$(LOCAL_PATH))